package com.gateway.security.common.token;

import com.gateway.common.dto.ApiDefinition;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/12 15:54
 **/
public interface ServerSecurityTokenRepository {

    /**
     * 获取token
     * @param exchange
     * @return
     */
    Mono<SecurityToken> loadToken(ServerWebExchange exchange, ApiDefinition apiDefinition);
}
